package com.bysreg;

public class testCrawler {
    public static void main(String[] args) {
        Crawler crawl = new Crawler("a","C:\\Users\\user\\Desktop\\test",Crawler.KMP,Crawler.DFS,Crawler.TITLE_AND_CONTENT);        
        //int[] a = crawl.calcBorder("abaaba".toCharArray());
        //for(int i=0;i<a.length;i++) {
            //System.out.println(a[i]);
        //}
        Result[] res = crawl.crawl();        
        for(Result ares : res) {
            System.out.println("ketemu di " + ares.getPath() + " judul: " + ares.getTitle() + " preview : " + ares.getPreview());
        } 
    }
}
